package com.jeehentor.generate.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeehentor.generate.dto.GenCommonDTO;
import com.jeehentor.generate.entity.SysGenPage;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface SysGenPageMapper extends BaseMapper<SysGenPage> {
    @InterceptorIgnore(tenantLine = "true")
    Page<Map<String,Object>> selectTable(Page page, @Param("dto") GenCommonDTO dto);

    @InterceptorIgnore(tenantLine = "true")
    void saveByModel(@Param("dto")GenCommonDTO dto);

    @InterceptorIgnore(tenantLine = "true")
    void updateByModel(@Param("dto")GenCommonDTO dto);

    @InterceptorIgnore(tenantLine = "true")
    void deleteByModel(@Param("dto")GenCommonDTO dto);
}
